<template>
  <div class="input01">
    <label>{{title}}:</label>
    <el-input class="input01-input" placeholder="请输入内容" :disabled="val!==''" v-model="val">
        <i slot="suffix" v-bind:class="[icon, 'el-input__icon']"></i>
    </el-input>
  </div>
</template>
<style scoped>
.input03{
    margin: 5px 5px;
}
.input03-input{
  width:auto!important;
}
.input03 i{
    font-size: 18px;
}
.input03 >>> .el-input__inner {
 background: #ffffff;
 /* height: 32px!important; */
 width: 150px;
}
</style>
<script>
export default {
  name: "input03",
  props: ['title','icon','value'],
  meta:{
    descr:"禁止输入输入框-仅用于数据显示"
  },
  data() {
    return {
      val:''
    };
  },
  created(){
      this.val=this.value;
  },
  watch:{
    val(value){
      this.$emit('input', value);
    }
  }
};
</script>

